From: Ian Campbell Date: Wed, 25 Oct 2006 12:58:30 +0000 (+0100) Subject: [LINUX] Exclude support for /proc/xen/xsd_kva when building a X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15584^2~23 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=160e8134cbcba0137d659d738f85a325cba9652b;p=xen.git [LINUX] Exclude support for /proc/xen/xsd_kva when building a non-privileged guest. This is useful for PV-on-HVM because it removes code which would otherwise require extra code in the compatability shim. Signed-off-by: Ian Campbell --- diff --git a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c index fa3a40165e..987cdfcd11 100644 --- a/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c +++ b/linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c @@ -781,7 +781,7 @@ void xenbus_probe(void *unused) } -#ifdef CONFIG_PROC_FS +#if defined(CONFIG_PROC_FS) && defined(CONFIG_XEN_PRIVILEGED_GUEST) static struct file_operations xsd_kva_fops; static struct proc_dir_entry *xsd_kva_intf; static struct proc_dir_entry *xsd_port_intf; @@ -862,7 +862,7 @@ static int __init xenbus_probe_init(void) xen_store_evtchn = xen_start_info->store_evtchn = alloc_unbound.port; -#ifdef CONFIG_PROC_FS +#if defined(CONFIG_PROC_FS) && defined(CONFIG_XEN_PRIVILEGED_GUEST) /* And finally publish the above info in /proc/xen */ xsd_kva_intf = create_xen_proc_entry("xsd_kva", 0600); if (xsd_kva_intf) {